package com.jfreer.blog;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.impl.Log4jLoggerAdapter;

import java.lang.reflect.Field;

/**
 * Description：<br/>
 *
 * @author: landy
 * @date: 2016/07/24 21:17
 * note:
 */
public class App {
    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {
        Logger log = LoggerFactory.getLogger(App.class);
        log.info("test information");
        log.info("test information");
        log.info("test information");
        System.out.println(log.getClass());
        Log4jLoggerAdapter adapter = (Log4jLoggerAdapter) log;
        Field field = Log4jLoggerAdapter.class.getDeclaredField("logger");
        field.setAccessible(true);
        System.out.println(field.get(adapter).getClass());
    }
}
